package com.byxy.mysystem.controller.system;

import com.byxy.mysystem.model.system.SysRequestPath;
import com.byxy.mysystem.service.system.ISysRequestPathService;
import com.byxy.mysystem.util.JsonResult;
import com.byxy.mysystem.util.ResultTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
 * <p>
 * 请求路径 前端控制器
 * </p>
 *
 * @author omd
 * @since 2022-10-07
 */
@RestController
@RequestMapping("/sysRequestPath")
public class SysRequestPathController {

    @Autowired
    private ISysRequestPathService sysRequestPathService;

    @GetMapping("/getResource")
    public JsonResult<List<SysRequestPath>> getResource(){
        List<SysRequestPath> list = sysRequestPathService.getResource();
        return ResultTool.success(list);
    }

}
